package au.edu.swin.videoshop.bean;

import java.io.Serializable;

public class Store implements Serializable{
	private Long mStoreId;
	private String mStoreName;
	private Address mAddress;
	
	public Store() {
	}
	
	/**
	 * @return the storeId
	 */
	public Long getStoreId() {
		return mStoreId;
	}

	/**
	 * @param storeId the storeId to set
	 */
	public void setStoreId(Long storeId) {
		mStoreId = storeId;
	}

	/**
	 * @return the storeName
	 */
	public String getStoreName() {
		return mStoreName;
	}
	
	/**
	 * @param storeName the storeName to set
	 */
	public void setStoreName(String storeName) {
		mStoreName = storeName;
	}
	
	/**
	 * @return the address
	 */
	public Address getAddress() {
		return mAddress;
	}
	
	/**
	 * @param address the address to set
	 */
	public void setAddress(Address address) {
		mAddress = address;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj instanceof Store) {
			return this.mStoreId.equals(((Store)obj).mStoreId);
		}
		return false;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		return mStoreId.hashCode();
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return mStoreName;
	}
}
